package com.cybertron.ironhide.manage.persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cybertron.ironhide.manage.common.base.Pager;
import com.cybertron.ironhide.manage.domain.Tag;

public interface TagMapper {
	int deleteByPrimaryKey(String id);

	int insert(Tag record);

	int insertSelective(Tag record);

	Tag selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(Tag record);

	int updateByPrimaryKey(Tag record);

	List<Tag> selectBySelective(Tag tag, Pager pager);

	List<Tag> selectByCategoryId(String cateId);

	String selectIdByTitleAndCategoryId(@Param("title") String title,
			@Param("categoryId") String categoryId);
}